﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace ShapeDrawer
{
    public static class IconMaker
    {
        private static Icon CreateIcon(string normalState, string hoverState, string tooltip)
        {
            Icon newIcon = new Icon(normalState, hoverState);
            newIcon.SetIconToolTip(tooltip);
            newIcon.Frame.HorizontalAlignment = HorizontalAlignment.Left;

            return newIcon;
        }

        public static Icon MakeNewFileIcon()
        {
            Icon newFileIcon = CreateIcon(@"..\..\Resources\NewFileNS.png", @"..\..\Resources\NewFileHS.png","New file");
            return newFileIcon;
        }

        public static Icon MakeOpenFileIcon()
        {
            Icon openFileIcon = CreateIcon(@"..\..\Resources\OpenFileNS.png", @"..\..\Resources\OpenFileHS.png", "Open file");
            return openFileIcon;
        }

        public static Icon MakeSaveIcon()
        {
            Icon saveIcon = CreateIcon(@"..\..\Resources\SaveNS.png", @"..\..\Resources\SaveHS.png","Save");
            return saveIcon;
        }

        public static Icon MakeDrawCircleIcon()
        {
            Icon drawCircleIcon = CreateIcon(@"..\..\Resources\DrawCircleNS.png", @"..\..\Resources\DrawCircleHS.png","Draw Circle");
            drawCircleIcon.SetActivation(@"..\..\Resources\DrawCircleAS.png");
            return drawCircleIcon;
        }

        public static Icon MakeDrawPolygonIcon()
        {
            Icon drawPolygonIcon = CreateIcon(@"..\..\Resources\DrawPolygonNS.png", @"..\..\Resources\DrawPolygonHS.png", "Draw Polygon");
            drawPolygonIcon.SetActivation(@"..\..\Resources\DrawPolygonAS.png");
            return drawPolygonIcon;
        }

        public static Icon MakeZoomIcon()
        {
            Icon zoomIcon = CreateIcon(@"..\..\Resources\ZoomNS.png", @"..\..\Resources\ZoomHS.png", "Zoom");
            zoomIcon.SetActivation(@"..\..\Resources\ZoomAS.png");
            return zoomIcon;
        }

        public static Icon MakeDeleteIcon()
        {
            Icon deleteIcon = CreateIcon(@"..\..\Resources\DeleteNS.png", @"..\..\Resources\DeleteHS.png", "Delete");
            deleteIcon.SetActivation(@"..\..\Resources\DeleteAS.png");
            return deleteIcon;
        }

    }
}
